package com.zelin.page.web.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zelin.dao.ItemCatDao;
import com.zelin.entity.ItemCatEntity;
import com.zelin.sellergoods.service.ItemCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by WF on 2021/8/23 8:28
 */
@RestController
@RequestMapping
public class ItemCatController {
    @Reference(timeout = 5000)
    private ItemCatService itemCatService;


    @GetMapping("itemCat/list")
    public List<ItemCatEntity> findAll(){
        return itemCatService.findAll();
    }
}
